<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xmlns:py="http://purl.org/kid/ns#"
    py:extends="'master.kid'">
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type" py:replace="''"/>
<title>${name} - PyHMon Web Interface</title>
</head>
<body>
<h2>${name}</h2>
<img src="${image_file}" />
<div py:if="p_or_i == 'plug'">
    <form py:attrs="{'action':'graphic'}"  method="post">
	<input type="hidden" name="plugid" value="${stuffid}"/>
	<input type="hidden" name="endTime" value="${endTime}"/>
	<input type="hidden" name="${interv}" value="${interv}"/>
	<div py:if="interv != None">
	<input type="submit" name="prev" value="Previous ${interv}"/>
	<input type="submit" name="next" value="Next ${interv}"/>
	</div>
    </form>
    <form py:attrs="{'action':'graph'}" method = "post">
	<input type="hidden" name="plugid" value="${stuffid}"/>
	<input type="submit" name="back" value="Back"/>
    </form>
</div>
<div py:if="p_or_i == 'item'">
    <form py:attrs="{'action':'graphic'}"  method="post">
	<input type="hidden" name="itemid" value="${stuffid}"/>
	<input type="hidden" name="endTime" value="${endTime}"/>
	<input type="hidden" name="${interv}" value="${interv}"/>
	<div py:if="interv != None">
	<input type="submit" name="prev" value="Previous ${interv}"/>
	<input type="submit" name="next" value="Next ${interv}"/>
	</div>
    </form>
    <form py:attrs="{'action':'graph'}" method = "post">
	<input type="hidden" name="itemid" value="${stuffid}"/>
	<input type="submit" name="back" value="Back"/>
    </form>
</div>
</body>
</html>
